﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Superman : Animal,IFly
    {
        protected string name { get; set; }

        

        public Superman (string eat,string name):base(eat)
        {
            this.name = name;
        }
        public override void chi()
        {
            Console.WriteLine("我是：{0}，我会吃东西：{1}",this.name ,this.eat);
        }

        public void TakeOff()
        {
            Console.WriteLine("我会起飞救人。");
        }

        public void Fly()
        {
            Console.WriteLine("有人需要我，起飞！");
        }

        public void Land()
        {
            Console.WriteLine("马上到达，准备着陆救人。");
        }
    }
}
